#ifndef SCREEN_H_
#define SCREEN_H_

#define HEIGHT 23
#define WIDTH 80

#include "Snake.h"
#include "Apple.h"

class Screen {
	public:
		Screen();
		virtual ~Screen();

		void set( int x, int y, char c );

		void drawSnake( const Snake& snake );
		void drawApple( const Apple& apple );

		/*
		 * Sprawdza czy na polu jest waz
		 */
		bool check( int x, int y );

		void paint();
		void clear();
	private:
		char screen[WIDTH][HEIGHT];
};

#endif /* SCREEN_H_ */
